#!/bin/bash

[ -z $1 ] && echo "第一个参数为需要搜索文件的名称" && exit 100
#[ -z $2 ] && echo "第二个参数为需要搜索的关键字"  && exit 101

file_path="/swansay518-backup/518_soure_code/config"

for i in `find ${file_path} -type f -name "*"`
do	
#	echo "=============================="
#	echo $i
	cat $i | grep "$1" &&echo $i
#	sed -i s@vod/adminindex@admin/index@g $i
#	echo "============================="
done
	
